import 'package:flutter/material.dart';
import 'package:love_app/pages/app_page.dart';
import 'package:love_app/pages/login_register/login_page.dart';
import 'package:love_app/pages/love_record/published.dart';

import '../pages/login_register/register_page.dart';

class MyRouter {
  // 实现无Context路由跳转
  static GlobalKey<NavigatorState> navigatorKey = GlobalKey();

  // 所有的路由
  static Map<String, WidgetBuilder> routes = {
    "register": (context) => Register(), // 注册页面
    "/login": (context) => LoginPage(),
    "add_published": (context) => AddPublished(),
    "/app": (context) => AppPage(),
    // "app": (context) => AppPage(), //
  };
}

